package com.example.demo.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.example.demo.enums.Sex;
import com.example.demo.entity.Emp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.extension.api.ApiController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhaiding
 * @since 2019-05-11
 */
@RestController
@RequestMapping("/demo/emp")
public class EmpController extends ApiController {

    @GetMapping(value = "")
    public R test() {
        Emp emp = new Emp();
        emp.setName("测试");
        emp.setSjid(12);
        emp.setSex(Sex.WOMAN);
        return R.ok(emp);
    }

}
